package pactera.tf.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import pactera.tf.dataobj.ChatMsgDO;

import java.util.List;

@Repository
@Mapper
public interface ChatMsgMapper {
    /**
     *
    
     * <p>Title: InsertChatMsg</p>  
    
     * <p>Description:插入聊天记录 </p>  
    
     * @param chatMsg
     */
    void insertChatMsg(ChatMsgDO chatMsg);
    /**
     * 
    
     * <p>Title: LookTwoUserMsg</p>  
    
     * <p>Description:查询两个好友间的聊天记录 </p>  
    
     * @param chatMsg
     * @return
     */
    List<ChatMsgDO>  lookTwoUserMsg(@Param("chatMsg") ChatMsgDO chatMsg);
}